{if condition="$user.agent eq 1"}
<div class="row">
  <div class="col-md-12">
    <div class="row">
        <div class="col-md-6">
          <div class="panel">
              <!--Panel heading-->
              <div class="panel-heading ui-sortable-handle">
                  <h3 class="panel-title">我的信息</h3>
              </div>
              <table class="table">
                  <tbody>
                      <tr>
                          <td>&nbsp;&nbsp;&nbsp;我的邀请码：{$user.agent_mark}<div class="pull-right"><button type="button" id="copy-btn" data-clipboard-text="{$user.agent_mark}" class="btn label label-success">复制</button></div></td>
                      </tr>
                      <tr>
                          <td>&nbsp;&nbsp;&nbsp;我的成本费率 - QQ：{$qqrate}% | 微信：{$wxrate}% | 支付宝：{$alirate}%</td>
                      </tr>
                      <tr>
                        {if $my}
                          <td>&nbsp;&nbsp;&nbsp;我的下级费率 - QQ：{$myarr['qq']}% | 微信：{$myarr['wx']}% | 支付宝：{$myarr['ali']}%<div class="pull-right"><button type="button" class="btn label label-success btn-edit">编辑</button></div></td>
                        {else /}
                          <td>&nbsp;&nbsp;&nbsp;我的下级费率 - 暂无下级用户</td>
                        {/if}
                      </tr>
                  </tbody>
              </table>
              <div class="panel-footer"> 中间赚取差 - {if $my} QQ：{$qq}% | 微信：{$wx}% | 支付宝：{$ali}%{else /} 0% {/if} 费率</div>
          </div>
        </div>
        <div class="col-md-6">
          <div class="panel">
              <div class="panel-body pad-ver-5" style="padding-bottom: 2px;">
                  <h4> 财务信息 </h4>
                  <ul class="nav nav-section nav-justified">
                      <li>
                          <div class="section">
                              <h5 class="text-left"> 总共赚取</h5>
                              <p class="text-left"> {$money} </p>
                          </div>
                      </li>
                      <li>
                          <div class="section">
                              <h5 class="text-left"> 今日收入</h5>
                              <p class="text-left">  {$moneyToday} </p>
                          </div>
                      </li>
                      <li>
                          <div class="section">
                              <h5 class="text-left"> 我的下级</h5>
                              <p class="text-left">  {$pcount} </p>
                          </div>
                      </li>
                      <li>
                          <div class="section">
                              <h5 class="text-left"> 当前时间</h5>
                              <p class="text-left">  {$time}</p>
                          </div>
                      </li>
                  </ul>
                  <div class="progress progress-striped progress-xs">
                      <div style="width: {$b}%;" aria-valuemax="100" aria-valuemin="0" aria-valuenow="75.55" role="progressbar" class="progress-bar"> <span class="sr-only">{$b}% Complete</span> </div>
                  </div>
                  
                  <p class="text-left" style="line-height: 20px;">下级总流水: {$pmoney}<br>今日下级流水: <span class="text-success">{$pmoneyToday}</span> <br> 今日收入比例{$b}%</p>
              </div>
          </div>
        </div>
        <div class="col-md-12">
          <div class="panel">
            <div class="panel-heading">
                <h3 class="panel-title">下级管理 <div class="pull-right">{$pcount}</div></h3>
            </div>
            <div class="panel-body">
                <div class="table-responsive">
                    <table class="table table-bordered">
                        <thead>
                            <tr>
                              <th>账号</th>
                              <th>今日流水</th>
                              <th>总流水</th>
                              <th>今日订单</th>
                              <th>总订单</th>
                              <th>手机号码</th>
                            </tr>
                        </thead>
                        <tbody>
                          {volist name="plist" id="vo" empty="<tr class='no-records-found'><td colspan='14'>暂无下级</td></tr>"}
                          <tr>
                              <td>{$vo.username}</td>
                              <td>{$vo.moneyToday}</td>
                              <td>{$vo.money}</td>
                              <td>{$vo.countToday}</td>
                              <td>{$vo.count}</td>
                              <td>{$vo.mobile}</td>
                          </tr>
                          {/volist}
                        </tbody>
                    </table>
                </div>
              </div>
          </div>
        </div>
      </div>
  </div>
</div>
{else /}
<div class="row">
  <div class="col-md-12">
    <div class="panel">
      <div class="panel-heading">
          <h3 class="panel-title">开通商户代理</h3>
      </div>
      <div class="panel-body">
        <div class="alert alert-success" style="padding: 15px;border-radius: 0px;margin-bottom: 1px;">
            开通代理拥有超低费率 管理属于自己的下级用户 赚取费率差
        </div>
        <input type="text" class="form-control input-lg" value="开通需要 {$site.agent_price} 元" readonly="readonly" style="margin-bottom: 1px;">
        <select class="form-control input-lg" id="type" style="font-size: 20px;line-height: 1.3333333;">
          <option value="alipay">支付宝</option>
          <option value="wxpay">微信</option>
          <option value="qqpay">QQ钱包</option>
        </select>
      </div>
      <div class="panel-footer"> <a href="/index/user/index" class="btn btn-default">返回首页</a><a href="javascript:;" class="btn btn-success btn-agent pull-right">立即开通</a></div>
    </div>

  </div>
</div>
{/if}